﻿<UserControl x:Class="AbhiRuchiFoods.TaskManagement"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1024" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Width="auto">
        <Grid>
            <Label Name="lblHeader" Margin="0,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Center" Content="Task Management" FontWeight="Bold"></Label>
            <Label Name="lblAddEditSec" Content="Add/Edit Section" Margin="10,60,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold"></Label>
            <Label Name="lblSectionName" Margin="10,110,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Section Name"></Label>
            <ComboBox Name="cmbSectionName" Margin="110,110,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="400" Height="25" ItemsSource="{Binding}" SelectionChanged="cmbSectionName_SelectionChanged"></ComboBox>
            <Label Name="lblTaskName" Margin="10,160,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Task Name"></Label>
            <TextBox Name="txtTaskName" Margin="110,160,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="400" Height="25"></TextBox>
            <Label Name="lblParameters" Margin="10,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Parameters"></Label>
            <Label Name="lblGender" Margin="110,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Gender"></Label>
            <RadioButton Name="rdoMale" Margin="110,240,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Male" GroupName="Gender" IsChecked="True"></RadioButton>
            <RadioButton Name="rdoFeMale" Margin="110,280,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Female" GroupName="Gender"></RadioButton>
            <Label Name="lblHours" Margin="200,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="No Of Hours"></Label>
            <RadioButton Name="rdo8Hr" Margin="200,240,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="8 Hr" GroupName="Time" IsChecked="True"></RadioButton>
            <RadioButton Name="rdo12Hr" Margin="200,280,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="12 Hr" GroupName="Time"></RadioButton>
            <Label Name="lblPay" Margin="310,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Pay Per Day"></Label>
            <RadioButton Name="rdo125" Margin="310,240,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="125" GroupName="Pay" IsChecked="True"></RadioButton>
            <RadioButton Name="rdo133" Margin="310,280,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="133" GroupName="Pay"></RadioButton>
            <RadioButton Name="rdo150" Margin="310,320,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="150" GroupName="Pay"></RadioButton>
            <Label Name="lblDesc" Margin="10,370,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Description"></Label>
            <TextBox Name="txtDesc" Margin="110,370,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="400" Height="100"></TextBox>
            <Button Name="btnSubmit" Margin="210,490,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="100" Height="25" Content="Submit" Click="btnSubmit_Click"></Button>
            <Button Name="btnClear" Margin="330,490,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="100" Height="25" Content="Clear" Click="btnClear_Click"></Button>
            <Label Name="lblAvailSec" Margin="606,60,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Content="Available Tasks" FontWeight="Bold"></Label>
            <telerik:RadGridView HorizontalAlignment="Left" Margin="606,100,0,0" Name="gvTasks" Width="700" Height="400" VerticalAlignment="Top" DataContext="{Binding}" RowActivated="gvTasks_RowActivated" IsReadOnly="True" />
        </Grid>
    </ScrollViewer>
</UserControl>
